package com.kensure.shike.user.model;

import java.util.Date;

import co.kensure.frame.BaseInfo;
import co.kensure.mem.DateUtils;

/**
 * 用户vip有效期对象类
 * @author fankd created on 2019-6-24
 * @since
 */
public class SKUserVip extends BaseInfo{

	private static final long serialVersionUID = 3545276994084105527L;
	
	/***/		
	private Long id;

	/**用户id*/		
	private Long userid; 

	/**状态，1是正常，0是未生效，-1是失效*/		
	private Integer status; 

	/**起始时间*/		
	private Date timeStart; 

	/**结束时间*/		
	private Date timeExpire; 

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	public Long getUserid() {
		return userid;
	}

	public void setUserid(Long userid) {
		this.userid = userid;
	}
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
	public Date getTimeStart() {
		return timeStart;
	}

	public void setTimeStart(Date timeStart) {
		this.timeStart = timeStart;
	}
	public Date getTimeExpire() {
		return timeExpire;
	}

	public void setTimeExpire(Date timeExpire) {
		this.timeExpire = timeExpire;
	}
	
	public String getTimeExpireDay() {
		return DateUtils.format(timeExpire,DateUtils.DAY_FORMAT);
	}
}
